package com.lanyun.yebdemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lanyun.yebdemo.bean.ArticleContent;
import com.lanyun.yebdemo.mapper.ArticleContentMapper;
import com.lanyun.yebdemo.service.IArticleContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleContentImpl extends ServiceImpl<ArticleContentMapper, ArticleContent> implements IArticleContentService {

    @Autowired
    ArticleContentMapper contentMapper;


    @Override
    public List<ArticleContent> getContents(int id) {
        return contentMapper.selectContentsById(id);
    }
}
